﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FrameWork.Components;
using System.Collections;

namespace FrameWork.web.Module.IntegralMS.IntegralMS.UserSelect
{
    public partial class User : System.Web.UI.Page
    {
        public string strUserList = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                #region 接收参数ViewState

                string[] allkeys = Request.QueryString.AllKeys;
                for (int i = 0; i < allkeys.Length; i++)
                {
                    ViewState[allkeys[i]] = Request[allkeys[i]];
                }

                #endregion

                LoadData();
            }
        }
        private void LoadData()
        {
            QueryParam qp = new QueryParam();
            qp.Where =string.Format(" WHERE U_GroupID={0}",ViewState["GroupID"]);
            int RecordCount = 0;
            ArrayList list = BusinessFacade.sys_UserList(qp, out RecordCount);
            rptUsers.DataSource = list;
            rptUsers.DataBind();
        }

    }
}